package cn.tedu.baking_wu01.controller;


import cn.tedu.baking_wu01.mapper.ProductMapper;
import cn.tedu.baking_wu01.pojo.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping
public class ProductController {

    @Autowired
    ProductMapper productMapper;

    @GetMapping("/productArr")
    public List<Product> ProductArr(){
        return productMapper.ProductArr();
    }
}
